**********************************
** ML Heterogeneity replication **
**********************************

Version: R - 4.1.0 and RStudio - 1.4.1717 (both 64 bit)

For each treatment arm in each country, there is a seperate folder. Within each folder, there is a data file (in DTA format), "ML_Functions" file, "gml-hte_ml" file, and "gml-hte_an" file. 

Direction: Before running any codes, make sure "ML_Functions" file is in the same folder as the data files. Open each folder and then select all codes in the Machine Learning estimation file (name starts with "gml-hte_ml"), and then click "Run". If R asks you to restart the program, click "No" throughout. Once you have the RData file (should be saved in the same folder), run the ML analysis file (name starts with "gml-hte_an"). It will produce 5 output files (4 tables and 1 figure).

Codes in this folder replicate Table 5 and Tables B21-24 in Appendix B.


